{{#index}}
<div class="main-content">
    <div class="div-title">文件管理</div>
    <div class="file-action-btn">
        <div style="float: left;margin-right: 10px;"  id="uploadFile"></div>
        <button type="button" class="btn btn-primary e-addFolder">新建文件夹</button>
    </div>
    <div class="file-path"><span class="e-go cursor" reload="reload" href="module/sysFile/index">全部文件</span>
        <js>var goHref="";</js>
        <js>for(var i=0;i< data.paths.length; i++) </js>
        <js-code>
            <js>goHref+=data.paths[i];</js>
            &gt; <span class="e-go cursor" href="module/sysFile/index?path=${goHref}" reload="reload" >${data.paths[i]}</span>
            <js>goHref+="/";</js>
        </js-code>
    </div>

    <div class="file-list row">
        <div class="col-sm-12 file-show">
            <div class="col-sm-7">文件名</div>
            <div class="col-sm-2">大小</div>
            <div class="col-sm-2">修改日期</div>
        </div>
        <js>for(var i=0;i< data.sysFileList.length;i++)</js>
        <js-code>
            <div class="col-sm-12 file-show">
                <js>if(data.renameId==data.sysFileList[i].id)</js>
                <js-code>
                    <div class="col-sm-7">
                        <div class="col-sm-7" style="padding-left: 0"><input id="name${data.sysFileList[i].id}" class="file-rename" value="${data.sysFileList[i].name}"/> </div>
                        <div class="col-sm-5" style="padding-left: 0">
                            <button class="btn btn-primary btn-xs e-rename-finish" data-id="${data.sysFileList[i].id}">完成</button>
                            <button class="btn btn-primary btn-xs e-delete" data-id="${data.sysFileList[i].id}">删除</button>
                        </div>
                    </div>
                </js-code>
                <js>else</js>
                <js-code>
                    <js>if(data.sysFileList[i].type==0)</js>
                    <js-code>
                    <div class="col-sm-7">
                        <div class="col-sm-7 e-file-show cursor" style="padding-left: 0" data-name="${data.sysFileList[i].name}" data-level="${data.sysFileList[i].level}" > ${data.sysFileList[i].name}</div>
                        <div class="col-sm-5" style="padding-left: 0">
                            <button class="btn btn-primary btn-xs e-rename" data-id="${data.sysFileList[i].id}">重命名</button>
                            <button class="btn btn-primary btn-xs e-delete" data-id="${data.sysFileList[i].id}">删除</button>
                        </div>
                    </div>
                    </js-code>
                    <js>else</js>
                    <js-code>
                        <div class="col-sm-7">
                            <div class="col-sm-7 cursor" style="padding-left: 0" data-name="${data.sysFileList[i].name}" data-level="${data.sysFileList[i].level}" > ${data.sysFileList[i].name}</div>
                            <div class="col-sm-5" style="padding-left: 0">
                                <button class="btn btn-primary btn-xs e-get-file" data-id="${data.sysFileList[i].id}">下载</button>
                                <button class="btn btn-primary btn-xs e-rename" data-id="${data.sysFileList[i].id}">重命名</button>
                                <button class="btn btn-primary btn-xs e-delete" data-id="${data.sysFileList[i].id}">删除</button>
                            </div>
                        </div>
                    </js-code>
                </js-code>
                <div class="col-sm-2">${data.sysFileList[i].sizeStr}</div>
                <div class="col-sm-2">${data.sysFileList[i].updateDate}</div>
            </div>
        </js-code>
    </div>

    <div id="task"></div>
</div>
{{/index}}

{{#task}}
<div class="task-show">
    <div class="title">
        <label>上传完成</label>
        <div class="action e-close">×</div>
    </div>
    <div class="file-list-div">
    <js>for(var i=0;i< data.list.length;i++)</js>
    <js-code>
        <js>var obj=data.list[i]</js>
        <div class="file-list">
            <div class="file-name">${obj.name}</div>
            <div class="progress-show">
                <div class="progress progress-striped active">
                    <div class="progress-bar" role="progressbar" style="width: ${obj.progress}"></div>
                </div>
            </div>
            <div class="status">${obj.status}</div>
        </div>
    </js-code>
    </div>
</div>
{{/task}}


{{#uploadBtn}}
    <div class="picker">上传</div>
{{/uploadBtn}}